package com.sls.web.manager.recharge.service;

import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;
import com.sls.web.manager.recharge.pojo.CardStatistics;
import com.sls.web.manager.recharge.querybean.CardStatisticsQuery;

/**
 * @author sxf
 * 
 */
public interface CardStatisticsService {
	public boolean insert(CardStatistics info, UserInfoVO userInfoVO)
			throws Exception;

	/**
	 * 参数:id,cardName,卡密名称;status,卡密状态;createDate:创建日期
	 * 
	 * @param query
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public Pagination<CardStatistics> queryPage(CardStatisticsQuery query,
			UserInfoVO userInfoVO) throws Exception;

	/**
	 * 参数:id,cardName,卡密名称;status,卡密状态;createDate:创建日期
	 * 
	 * @param query
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public CardStatistics queryOne(CardStatisticsQuery query,
			UserInfoVO userInfoVO) throws Exception;

	/**
	 * 根据系统产品ID查询统计信息<br>
	 * 参数:id,cardName,卡密名称;status,卡密状态;createDate:创建日期
	 * 
	 * @param systemProductId
	 *            产品ID
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public CardStatistics queryStatistics(String systemProductId,
			UserInfoVO userInfoVO) throws Exception;
}
